<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/jquery-1.12.4.js"></script>
    <script type="text/javascript">

    </script>
</head>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<body>
<div class="container">
	<h2>雨量监测信息</h2>
	<form action="${pageContext.request.contextPath }/rainManage/list" method="get">
		<table border="1" cellspacing="0" width="600">
			<tr>
				<th>序号</th>
				<th>区域名称</th>
				<th>监测时间</th>
				<th>雨量值（mm）</th>
				<th>监测站</th>
				<th>站点地址</th>
				<th>操作</th>
			</tr>
			<c:forEach items="${list}" var="rainManage">
			<tr>
				<td>${rainManage.id}</td>
				<td>${rainManage.districName}</td>
				<td><fmt:formatDate value="${rainManage.monitortime}" pattern="yyyy-MM-dd"/></td>
				<td>${rainManage.rain}</td>
				<td>${rainManage.monitoringStation}</td>
				<td>${rainManage.monitoringAddress}</td>
				<td>
					<a href="${pageContext.request.contextPath }/rainManage/del/${rainManage.id}">删除</a>
				</td>
			</tr>
			</c:forEach>
		</table>
		</form>
	<a href="${pageContext.request.contextPath}/rainManage/add">新增雨量监测信息</a>
</div>
 <script>
	$(function(){
		$("th :odd").css("background-color: seagreen;");
	});
</script> 
</body>
</html>